]> dgit.raspbian.org Git - gnome-shell.git/commit
Rework compare to take into account closed windows
authorColin Walters <walters@verbum.org>
Tue, 11 May 2010 15:55:33 +0000 (11:55 -0400)
committerColin Walters <walters@verbum.org>
Mon, 17 May 2010 17:37:13 +0000 (13:37 -0400)
commitb736f52037006507932d0bf56fd21eb9f28ffd0b
tree730d33eed8592654b8d43e9e679f8f59537ea7b5
parent1af392b5f0a7ddbbafcd31718c503ee0f4620411
Rework compare to take into account closed windows

The API docs for ShellApp claimed it sorted by the last time the
user interacted with the app, but if one closed a window, then
we would fall back to comparing against a possibly much older
timestamp from another window.  Fix this by just keeping a
user time per app.

Also clean up the comparison function to explicitly check the state
instead of deferring to the window list.

https://bugzilla.gnome.org/show_bug.cgi?id=618378
src/shell-app.c